<!DOCTYPE html>
<html>
<head>
	<meta charset="UTF-8">
	<title></title>
	<include file="Public/header" />
</head>
<body>
<script type="text/javascript">
	var getpackagematerialbooksUrl="{:U('Stock/get_packagematerialbooks')}";//账册列表
	var confirmEditpackagematerialbooksUrl="{:U('Stock/editpackagematerialbooks')}";//确认编辑
	var packagematerialbooksDelUrl="{:U('Stock/packagematerialbooksDel')}";//删除
	var packagematerialbooksUndoUrl="{:U('Stock/packagematerialbooksUndo')}";
	var packagematerialbooksClearUrl="{:U('Stock/packagematerialbooksClear')}";
	var packagematerialbooksExamineUrl="{:U('Stock/packagematerialbooksExamine')}";
	<!-- using('../../../default/js/packagematerialbooks.js'); -->

</script>
<script type="text/javascript" src="__PUBLIC__/default/js/packagematerialbooks.js"></script>

	<table id="packagematerialbooksDatagrid" toolbar="#packagematerialbooks_tb"></table>
    <!-- 搜索栏 -->
    <div id="packagematerialbooks_tb">
        <form id="packagematerialbooksSearchForm" method="post" novalidate>
             <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon icon-all" plain="true" onclick="packagematerialbooksObj.showAll()">全部</a>     
            条形码:<input class="easyui-textbox" name="pn" style="width:150px;height:30px;"> 
			名称:<input class="easyui-textbox" name="name" style="width:150px;height:30px;"> 
        </form>
		<a href="javascript:void(0)" onclick="packagematerialbooksObj.addBar()" class="easyui-linkbutton" data-options="iconCls:'icon-add',plain:true">添加</a>
		<a href="javascript:void(0)" onclick="packagematerialbooksObj.editBar()" class="easyui-linkbutton" data-options="iconCls:'icon-edit',plain:true">编辑</a>
		<a href="javascript:void(0)" onclick="packagematerialbooksObj.removeBar()" class="easyui-linkbutton" data-options="iconCls:'icon-remove',plain:true">删除</a>
		<a href="javascript:void(0)" onclick="packagematerialbooksObj.reloadBar()" class="easyui-linkbutton" data-options="iconCls:'icon-reload',plain:true">刷新</a>
		<a href="javascript:void(0)" onclick="packagematerialbooksObj.examineBar(1)" class="easyui-linkbutton" data-options="iconCls:'icon-key',plain:true">审核通过</a>
		<a href="javascript:void(0)" onclick="packagematerialbooksObj.examineBar(2)" class="easyui-linkbutton" data-options="iconCls:'icon-key_delete',plain:true">审核不通过</a>
		<!-- <a href="javascript:void(0)" onclick="packagematerialbooksObj.saveBar()" class="easyui-linkbutton" data-options="iconCls:'icon-save',plain:true">保存</a> -->
		<a href="javascript:void(0)" class="easyui-menubutton" data-options="menu:'#packagematerialbooks_mm1',iconCls:'icon-recycle'">回收站</a>
		<div id="packagematerialbooks_mm1" style="width:150px;">
			<div onclick="packagematerialbooksObj.recycle()">查看</div>
			<div onclick="packagematerialbooksObj.undoBar()" data-options="iconCls:'icon-undo'">恢复</div>
			<div onclick="packagematerialbooksObj.clearBar()" data-options="iconCls:'icon-remove'">删除</div>
		</div>
    </div>
    <!-- /搜索栏 -->
	<!-- 添加 -->
	<div id="packagematerialbooksAddDialog" class="easyui-dialog" title="规则添加" style="width:500px;padding:10px 20px"
        closed="true" buttons="#packagematerialbooksAddButtons"  modal="true">
         <form id="packagematerialbooksAddForm" method="post" novalidate>
			<div class="fitem">
                <label>条形码</label>
                <input name="pn" class="easyui-textbox" style="background:#ccc;" data-options="required:true,delay:1000,height:30,validType:['length[1,30]']" />
            </div>
            <div class="fitem">
                <label>耗材名称</label>
				<input name="name" class="easyui-textbox" style="background:#ccc;" data-options="required:true,delay:1000,height:30,validType:['length[1,30]']" />
            </div>

			<div class="fitem">
                <label>长(cm)</label>
                <input name="length" class="easyui-textbox" style="background:#ccc;" data-options="required:true,delay:1000,height:30,validType:['length[1,30]']" />
            </div>
			<div class="fitem">
                <label>宽(cm)</label>
                <input name="width" class="easyui-textbox" style="background:#ccc;" data-options="required:true,delay:1000,height:30,validType:['length[1,30]']" />
            </div>
			<div class="fitem">
                <label>高(cm)</label>
                <input name="height" class="easyui-textbox" style="background:#ccc;" data-options="required:true,delay:1000,height:30,validType:['length[1,30]']" />
            </div>
         </form>
    </div>
    <div id="packagematerialbooksAddButtons">
    	<a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-ok" onclick="packagematerialbooksObj.add('{:U('Stock/packagematerialbooksAdd')}')" style="width:90px">添加</a>
        <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-cancel" onclick="javascript:$('#packagematerialbooksAddDialog').dialog('close')" style="width:90px">取消</a>
    </div>
    <!-- /添加 -->
	<!-- 编辑-->
    <div id="packagematerialbooksEditDialog" class="easyui-dialog" style="width:400px;padding:10px 20px"
            closed="true" buttons="#packagematerialbooksEditButtons"  modal="true">
        <form id="packagematerialbooksEditForm" method="post" novalidate>          
            <div class="fitem">
                <label>条形码</label>
				<input name="id" type="hidden" />
                <input name="pn" class="easyui-textbox" style="background:#ccc;" data-options="readonly:true,required:true,delay:1000,height:30,validType:['length[1,30]']" />
            </div>
            <div class="fitem">
                <label>耗材名称</label>
				<input name="name" class="easyui-textbox" style="background:#ccc;" data-options="required:true,delay:1000,height:30,validType:['length[1,30]']" />
            </div>

			<div class="fitem">
                <label>长(cm)</label>
                <input name="length" class="easyui-textbox" style="background:#ccc;" data-options="required:true,delay:1000,height:30,validType:['length[1,30]']" />
            </div>
			<div class="fitem">
                <label>宽(cm)</label>
                <input name="width" class="easyui-textbox" style="background:#ccc;" data-options="required:true,delay:1000,height:30,validType:['length[1,30]']" />
            </div>
			<div class="fitem">
                <label>高(cm)</label>
                <input name="height" class="easyui-textbox" style="background:#ccc;" data-options="required:true,delay:1000,height:30,validType:['length[1,30]']" />
            </div>
        </form>
    </div>
    <div id="packagematerialbooksEditButtons">
        <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-ok" onclick="packagematerialbooksObj.save('{:U('Stock/editpackagematerialbooks')}')" style="width:90px">确认</a>
        <a href="javascript:void(0)" class="easyui-linkbutton" iconCls="icon-cancel" onclick="javascript:
    $('#packagematerialbooksEditDialog').dialog('close')" style="width:90px">取消</a>
    </div>
    <!-- /编辑 -->  
</body>